package com.hqyj.mapper;

import com.hqyj.pojo.Goods;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface GoodsMapper {
    List<Goods> findGoodsAll(String condition);
    Integer insertGoods(Goods goods);
    Integer insertGoodsContact(@Param("gId")int gId, @Param("mId")int mId, @Param("sId")int sId, @Param("uId")int uId);
    int findGoodId(int gNo);
    Integer deleteGoodsById(@Param("gId")int gId);
    Integer deleteGoodsContactBygId(@Param("gId") int gId);
    Integer updateGoodsById(Goods goods);
    Integer updateGoodsContact(@Param("gId")int gId, @Param("mId")int mId, @Param("sId")int sId, @Param("uId")int uId);
    Goods findGoodsById(@Param("gId")int gId);
    Goods findGoodsGNno(@Param("gNo")String gNo);
}
